package net.ceviz.forum.xml.parsing;

import java.io.File;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;


public class ParseXML {

	public static void main(String[] args) {
		try {
			JAXBContext ctx = JAXBContext.newInstance("net.ceviz.forum.xml.parsing");
			Unmarshaller unmarshaller = ctx.createUnmarshaller();
			Object object = unmarshaller.unmarshal(new File("cev.xml"));
			System.out.println(object);
		} catch (JAXBException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
	}
	
}
